/**
 * Created by yiihua-013 on 16/10/30.
 */

'use strict'

var gen = function *(min,max) {
    for (let i = min;i < max;i++)
        yield i;
};

var g = gen(10,20)
let ret
while (!(ret = g.next()).done){
    console.log(ret.value)
}
